import { request } from './equipment'

/* 获取输入表格标题与行 */
export function get(parameter: object) {
	return request({
		url: `/equipment/type`,
		method: 'get',
		params: parameter,
	})
}

export function getAll() {
	return request({
		url: `/equipment/type/all`,
		method: 'get',
	})
}
/* 获取输出表格标题与行 */
export function saveOrUpdate(data: object) {
	return request({
		url: `/equipment/type`,
		method: 'post',
		data: data,
	})
}
/* 获取输入输出表格标题与行 */
export function deleteType(mark: string) {
	return request({
		url: `/equipment/type/delete/${mark}`,
		method: 'get',
	})
}


export default {
	get,
	getAll,
	saveOrUpdate,
	deleteType,
}
